const express = require('express');
const router = express.Router();
const home = require('./routes/home')
var index = require('./routes/index');
var games = require('./routes/games');
var luntan = require('./routes/luntan')
var userset = require('./routes/userset')
var simg = require('./routes/simg')

router.get('/', index);
router.get('/logoin', index);
router.get('/zhuce', index);
router.get('/game', index)
router.get('/shanchu/:id', index)
router.get('/updata/:id', index)
router.post('/upload', index);
router.post('/touxiang/:ids', simg)
// ===============前端普通功能区====================
router.get('/logoing', home.logoing)
router.post('/zhuce', home.zhuce);
router.post('/denglu', home.denglu);
router.get('/logout', home.logout)

// =============商品=============
router.get('/allgames', games.allgames)
router.post('/sones', games.sones)
router.get('/gameing', games.gameing)
router.post('/buys', games.buys)
router.post('/reply', games.reply)
router.post('/getreply', games.getreply)
router.get('/mylike', games.mylike)
router.post('/twore', games.twore)
router.post('/allteore', games.allteore)
//=============论坛===============
router.post('/luntan', luntan.luntan)
router.post('/wenzhang', luntan.wenzhang)
router.post('/focetext', luntan.focetext)
router.post('/lbig', luntan.lbig)
router.post('/shouc', luntan.shouc)
router.post('/article_reply', luntan.article_reply)
router.post('/getarticle_reply', luntan.getarticle_reply)
router.post('/twicere', luntan.twicere)
router.post('/TwiceReply', luntan.TwiceReply)
router.post('/gettwoReply', luntan.gettwoReply)
router.post('/dell', luntan.dell)
//====================个人设置===============
router.post('/mei', userset.mei)
router.post('/mmset', userset.mmset)
router.post('/scert', userset.scert)
router.post('/deeeel',userset.deeeel)

// ==============搜索=================
router.post('/ggetinfo', userset.ggetinfo)

module.exports = router;